package com.qf.forumproject.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.forumproject.entity.QfBlog;
import java.util.List;

import com.qf.forumproject.utils.BlogAndCommentVo;
import com.qf.forumproject.utils.SearchVo;
import com.qf.forumproject.utils.ResultVo;

/**
 * (QfBlog)表服务接口
 *
 * @author protagonist
 * @since 2022-07-23 11:37:15
 */
public interface QfBlogService extends IService<QfBlog> {

    List<QfBlog> selectByPage(SearchVo blogSearchVo);

    QfBlog addQfBlog(QfBlog qfBlog);

    QfBlog updateViews(Integer id);

    List<ResultVo> selectAllByPage();

    //查询指定文章和所有评论
    List<BlogAndCommentVo> selectBlogAndCommentVos(Integer id);
}
